home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam15
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-27
|
1KB
|
77 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
#include "generics.h"
main(int argc, char *argv[])
{
object obj1, obj2;
InitDynace(&argc);
/* Create two instances of the Class1 class. Note the new arguments.
This is done to reflect the argument change performed on the
New method associated with the Class1 class. See class1.d */
obj1 = gNewWithInt(Class1, 45);
obj2 = gNewWithInt(Class1, 36);
/* In order to insure the effectiveness of our new object's
initialization, print the code associated with each instance. */
printf("obj1's code = %d\n", gGetCode(obj1));
printf("obj2's code = %d\n", gGetCode(obj2));
gDispose(obj1);
gDispose(obj2);
return 0;
}
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/